var status = -1;
var selectionLog = [];

function start() {
    action(1, 0, 0)
}

function action(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.askMenu("想要回到故事开始的地方吗？\r\n\r\n#b#L0#是的，拜托了。#l\r\n#L1#不必了。", 4, 9201533)
        } else {
            if (b == 0) {
                cm.setQuestCustomData(9201533, cm.getMapId());
                cm.warp(610060000, 0)
            }
            cm.dispose()
        }
    }
};